# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  #设定自己的日期格式?无效
  Time::DATE_FORMATS[:d] = "%Y-%m-%d"
  Time::DATE_FORMATS[:t] = "%H:%M:%S"
  Time::DATE_FORMATS[:dt] = "%Y-%m-%d %H:%M:%S"
  Time::DATE_FORMATS.merge!(:default => "%Y-%m-%d %H:%M:%S")
end
